#!/usr/bin/env python

"""
/* setup.py - it's a radar UI game based on diversity-daemon 
 *
 * Copyright 2009 
 * Authored by Erin Yueh <erinyueh@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 */
"""


import sys
import os

os.system("/opt/e17/bin/edje_cc ./data/theme/diversity_radar.edc -id ./data/theme/images/ -fd ./data/theme/fonts/")

from ez_setup import use_setuptools
use_setuptools('0.6c3')

from setuptools import setup, find_packages, Extension
from distutils.sysconfig import get_python_inc
from glob import glob
import commands

dist = setup(name='diversity-radar',
    version='0.07',
    author='Erin Yueh',
    author_email='erinyueh@gmail.com',
    description='a radar UI to display targets in real world',
    url='http://code.google.com/p/diversity-radar/',
    download_url='http://diversity-radar.googlecode.com/svn/trunk/ diversity-radar-read-only',
    license='GNU GPL',
    package_dir={'':'src'},
    packages=['radar'],
    scripts=['src/radar_main.py'],
    install_requires=['python-evas>=0.2.1'],
    setup_requires=['python-evas>=0.2.1'],
    data_files=[
    ('diversity-radar/image', ['data/theme/images/gtk-preferences.png']),
	('diversity-radar', ['data/theme/diversity_radar.edj']),
	('pixmaps',['data/image/diversity-radar.png']),
	('applications', ['data/diversity-radar.desktop'])
]
)

installCmd = dist.get_command_obj(command="install_data")
installdir = installCmd.install_dir
installroot = installCmd.root

if not installroot:
    installroot = ""

if installdir:
    installdir = os.path.join(os.path.sep,
        installdir.replace(installroot, ""))
